#include <stdio.h>
#include <string.h>

int my_strcmp(char *s1, char *s2){
	int i = 0;
	while(s1[i] == s2[i] && s1[i] != '\0' && s2[i] != '\0'){
		i++;
	}
	return s1[i] - s2[i];
}

int main(){
	char s1[64] = "hello\0abcd";
	char s2[64] = "hello\0xyz";
	
	//gets(s1);
	//gets(s2);
	
	int ret = strcmp(s1, s2);
	if(ret > 0){
		printf(">\n");
	}else if(ret < 0){
		printf("<\n");
	}else{
		printf("==\n");
	}
	
	printf("ret = %d\n", ret);
	
	return 0;
}
